package com.hqyj.controller;


import com.hqyj.pojo.R;
import com.hqyj.service.PowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author rock
 * @since 2022-11-03 09:36:00
 */
@RestController
@RequestMapping("/power")
public class PowerController {

    @Autowired
    PowerService powerService;

    @PostMapping("/queryPowerByName")
    public R queryPowerByName(String userName){
        return powerService.queryPowewrByName(userName);
    }

}

